package cn.lyh.gulimall.member.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

/**
 * @author lyh
 * @version 1.0
 * @since 2021/4/6
 */
/**
    * 会员
    */
@Data
@TableName(value = "ums_member")
public class UmsMember {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 会员等级id
     */
    @TableField(value = "level_id")
    private Long levelId;

    /**
     * 用户名
     */
    @TableField(value = "username")
    private String username;

    /**
     * 密码
     */
    @TableField(value = "password")
    private String password;

    /**
     * 昵称
     */
    @TableField(value = "nickname")
    private String nickname;

    /**
     * 手机号码
     */
    @TableField(value = "mobile")
    private String mobile;

    /**
     * 邮箱
     */
    @TableField(value = "email")
    private String email;

    /**
     * 头像
     */
    @TableField(value = "header")
    private String header;

    /**
     * 性别
     */
    @TableField(value = "gender")
    private Byte gender;

    /**
     * 生日
     */
    @TableField(value = "birth")
    private Date birth;

    /**
     * 所在城市
     */
    @TableField(value = "city")
    private String city;

    /**
     * 职业
     */
    @TableField(value = "job")
    private String job;

    /**
     * 个性签名
     */
    @TableField(value = "sign")
    private String sign;

    /**
     * 用户来源
     */
    @TableField(value = "source_type")
    private Byte sourceType;

    /**
     * 积分
     */
    @TableField(value = "integration")
    private Integer integration;

    /**
     * 成长值
     */
    @TableField(value = "growth")
    private Integer growth;

    /**
     * 启用状态
     */
    @TableField(value = "status")
    private Byte status;

    /**
     * 注册时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 社交账号ID
     */
    @TableField(value = "social_uid")
    private String socialUid;

    /**
     * 社交账号Token
     */
    @TableField(value = "access_token")
    private String accessToken;

    /**
     * 社交账号Token过期时间
     */
    @TableField(value = "expires_in")
    private String expiresIn;

    public static final String COL_ID = "id";

    public static final String COL_LEVEL_ID = "level_id";

    public static final String COL_USERNAME = "username";

    public static final String COL_PASSWORD = "password";

    public static final String COL_NICKNAME = "nickname";

    public static final String COL_MOBILE = "mobile";

    public static final String COL_EMAIL = "email";

    public static final String COL_HEADER = "header";

    public static final String COL_GENDER = "gender";

    public static final String COL_BIRTH = "birth";

    public static final String COL_CITY = "city";

    public static final String COL_JOB = "job";

    public static final String COL_SIGN = "sign";

    public static final String COL_SOURCE_TYPE = "source_type";

    public static final String COL_INTEGRATION = "integration";

    public static final String COL_GROWTH = "growth";

    public static final String COL_STATUS = "status";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_SOCIAL_UID = "social_uid";

    public static final String COL_ACCESS_TOKEN = "access_token";

    public static final String COL_EXPIRES_IN = "expires_in";
}